<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterBaseSupplierAddAgentId extends Migrator
{
    public function up()
    {

        $this->table('base_supplier')
            ->addColumn('agent_id', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '代理Id'])
            ->update();



    }

    public function down()
    {
        $this->table('base_supplier')->removeColumn('agent_id');
    }
}
